package com.zhentao.service;

import com.zhentao.schedule.file.article.pojo.ApArticle;
import io.minio.errors.*;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface ArticleFreemarkerService {
    /**
     * 生成静态文件上传到minIO中，并修改ap_article表，保存static_url字段
     * @param apArticle
     * @param content
     */
    public void buildArticleToMinIO(ApArticle apArticle, String content) throws ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;
}
